package com.situ.crm.service;

import javax.servlet.http.HttpSession;

import com.situ.crm.common.ServerResponse;
import com.situ.crm.entity.User;

public interface IUserService {

	ServerResponse pageList(Integer page,Integer limit);
	
	ServerResponse insert(User user,String roles);

	ServerResponse deleteById(Integer id);
	
	User selectById(Integer id);
	
	ServerResponse selectUserAndRoles(Integer userId);
	
	ServerResponse update(User user,String roles);
	
	ServerResponse selectCreateMan();
	
	ServerResponse login(String username,String password,HttpSession session);
}
